
<!DOCTYPE HTML>
<html lang="" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>数据安全及加密 · GitBook</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        
        
        
    
    <link rel="stylesheet" href="gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="Runtime.html" />
    
    
    <link rel="prev" href="Image-processing.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="./">
            
                <a href="./">
            
                    
                    关于
            
                </a>
            

            
        </li>
    

    
        
        <li class="header">Part I</li>
        
        
    
        <li class="chapter " data-level="2.1" data-path="Data-structure.html">
            
                <a href="Data-structure.html">
            
                    
                    数据结构
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2" data-path="Arithmetic.html">
            
                <a href="Arithmetic.html">
            
                    
                    算法
            
                </a>
            

            
        </li>
    

    
        
        <li class="header">Part II</li>
        
        
    
        <li class="chapter " data-level="3.1" data-path="Foundation.html">
            
                <a href="Foundation.html">
            
                    
                    Foundation
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.2" data-path="UIKit.html">
            
                <a href="UIKit.html">
            
                    
                    UIKit
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.3" data-path="WebView.html">
            
                <a href="WebView.html">
            
                    
                    WebView
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.4" data-path="Memory-management.html">
            
                <a href="Memory-management.html">
            
                    
                    内存管理
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.5" data-path="Message-passing.html">
            
                <a href="Message-passing.html">
            
                    
                    消息传递的方式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.6" data-path="Network.html">
            
                <a href="Network.html">
            
                    
                    网络
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.7" data-path="Data-storage.html">
            
                <a href="Data-storage.html">
            
                    
                    数据存储
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.8" data-path="Multi-thread.html">
            
                <a href="Multi-thread.html">
            
                    
                    多线程
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.9" data-path="Animation.html">
            
                <a href="Animation.html">
            
                    
                    动画
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.10" data-path="Image-processing.html">
            
                <a href="Image-processing.html">
            
                    
                    图像处理
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="3.11" data-path="Data-encryption.html">
            
                <a href="Data-encryption.html">
            
                    
                    数据安全及加密
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.12" data-path="Runtime.html">
            
                <a href="Runtime.html">
            
                    
                    Runtime
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.13" data-path="Runloop.html">
            
                <a href="Runloop.html">
            
                    
                    Runloop
            
                </a>
            

            
        </li>
    

    
        
        <li class="header">Part III</li>
        
        
    
        <li class="chapter " data-level="4.1" data-path="Project-organization.html">
            
                <a href="Project-organization.html">
            
                    
                    项目架构
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.2" data-path="Design-patterns.html">
            
                <a href="Design-patterns.html">
            
                    
                    设计模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.3" data-path="Component-based.html">
            
                <a href="Component-based.html">
            
                    
                    组件化
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.4" data-path="Debug-tips.html">
            
                <a href="Debug-tips.html">
            
                    
                    调试技巧
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.5" data-path="Performance-optimization.html">
            
                <a href="Performance-optimization.html">
            
                    
                    性能优化
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.6" data-path="Source-code.html">
            
                <a href="Source-code.html">
            
                    
                    源码理解
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.7" data-path="Code-management.html">
            
                <a href="Code-management.html">
            
                    
                    代码管理
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.8" data-path="Continuous-integration.html">
            
                <a href="Continuous-integration.html">
            
                    
                    持续集成
            
                </a>
            

            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="." >数据安全及加密</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h1 id="&#x6570;&#x636E;&#x5B89;&#x5168;&#x53CA;&#x52A0;&#x5BC6;">&#x6570;&#x636E;&#x5B89;&#x5168;&#x53CA;&#x52A0;&#x5BC6;</h1>
<h2 id="1&#x5BF9;&#x79F0;&#x52A0;&#x5BC6;&#x548C;&#x975E;&#x5BF9;&#x79F0;&#x52A0;&#x5BC6;&#x7684;&#x533A;&#x522B;&#xFF1F;">1.&#x5BF9;&#x79F0;&#x52A0;&#x5BC6;&#x548C;&#x975E;&#x5BF9;&#x79F0;&#x52A0;&#x5BC6;&#x7684;&#x533A;&#x522B;&#xFF1F;</h2>
<ul>
<li><p>1&#x3001;&#x5BF9;&#x79F0;&#x52A0;&#x5BC6;&#x53C8;&#x79F0;&#x516C;&#x5F00;&#x5BC6;&#x94A5;&#x52A0;&#x5BC6;&#xFF0C;&#x52A0;&#x5BC6;&#x548C;&#x89E3;&#x5BC6;&#x90FD;&#x4F1A;&#x7528;&#x5230;&#x540C;&#x4E00;&#x4E2A;&#x5BC6;&#x94A5;&#xFF0C;&#x5982;&#x679C;&#x5BC6;&#x94A5;&#x88AB;&#x653B;&#x51FB;&#x8005;&#x83B7;&#x5F97;&#xFF0C;&#x6B64;&#x65F6;&#x52A0;&#x5BC6;&#x5C31;&#x5931;&#x53BB;&#x4E86;&#x610F;&#x4E49;&#x3002;&#x5E38;&#x89C1;&#x7684;&#x5BF9;&#x79F0;&#x52A0;&#x5BC6;&#x7B97;&#x6CD5;&#x6709;DES&#x3001;3DES&#x3001;AES&#x3001;Blowfish&#x3001;IDEA&#x3001;RC5&#x3001;RC6&#x3002;</p>
</li>
<li><p>2&#x3001;&#x975E;&#x5BF9;&#x79F0;&#x52A0;&#x5BC6;&#x53C8;&#x79F0;&#x5171;&#x4EAB;&#x5BC6;&#x94A5;&#x52A0;&#x5BC6;&#xFF0C;&#x4F7F;&#x7528;&#x4E00;&#x5BF9;&#x975E;&#x5BF9;&#x79F0;&#x7684;&#x5BC6;&#x94A5;&#xFF0C;&#x4E00;&#x628A;&#x53EB;&#x505A;&#x79C1;&#x6709;&#x5BC6;&#x94A5;&#xFF0C;&#x53E6;&#x4E00;&#x628A;&#x53EB;&#x505A;&#x516C;&#x6709;&#x5BC6;&#x94A5;&#xFF1B;&#x516C;&#x94A5;&#x52A0;&#x5BC6;&#x53EA;&#x80FD;&#x7528;&#x79C1;&#x94A5;&#x6765;&#x89E3;&#x5BC6;&#xFF0C;&#x79C1;&#x94A5;&#x52A0;&#x5BC6;&#x53EA;&#x80FD;&#x7528;&#x516C;&#x94A5;&#x6765;&#x89E3;&#x5BC6;&#x3002;&#x5E38;&#x89C1;&#x7684;&#x516C;&#x94A5;&#x52A0;&#x5BC6;&#x7B97;&#x6CD5;&#x6709;&#xFF1A;RSA&#x3001;ElGamal&#x3001;&#x80CC;&#x5305;&#x7B97;&#x6CD5;&#x3001;Rabin&#xFF08;RSA&#x7684;&#x7279;&#x4F8B;&#xFF09;&#x3001;&#x8FEA;&#x83F2;&#xFF0D;&#x8D6B;&#x5C14;&#x66FC;&#x5BC6;&#x94A5;&#x4EA4;&#x6362;&#x534F;&#x8BAE;&#x4E2D;&#x7684;&#x516C;&#x94A5;&#x52A0;&#x5BC6;&#x7B97;&#x6CD5;&#x3001;&#x692D;&#x5706;&#x66F2;&#x7EBF;&#x52A0;&#x5BC6;&#x7B97;&#x6CD5;&#xFF09;&#x3002;</p>
</li>
</ul>
<h2 id="2&#x7B80;&#x8FF0;-ssl-&#x52A0;&#x5BC6;&#x7684;&#x8FC7;&#x7A0B;&#x7528;&#x4E86;&#x54EA;&#x4E9B;&#x52A0;&#x5BC6;&#x65B9;&#x6CD5;&#xFF0C;&#x4E3A;&#x4F55;&#x8FD9;&#x4E48;&#x4F5C;&#xFF1F;">2.&#x7B80;&#x8FF0; SSL &#x52A0;&#x5BC6;&#x7684;&#x8FC7;&#x7A0B;&#x7528;&#x4E86;&#x54EA;&#x4E9B;&#x52A0;&#x5BC6;&#x65B9;&#x6CD5;&#xFF0C;&#x4E3A;&#x4F55;&#x8FD9;&#x4E48;&#x4F5C;&#xFF1F;</h2>
<p>SSL &#x52A0;&#x5BC6;&#xFF0C;&#x5728;&#x8FC7;&#x7A0B;&#x4E2D;&#x5B9E;&#x9645;&#x4F7F;&#x7528;&#x4E86; &#x5BF9;&#x79F0;&#x52A0;&#x5BC6; &#x548C; &#x975E;&#x5BF9;&#x79F0;&#x52A0;&#x5BC6; &#x7684;&#x7ED3;&#x5408;&#x3002;&#x4E3B;&#x8981;&#x7684;&#x8003;&#x8651;&#x662F;&#x5148;&#x4F7F;&#x7528; &#x975E;&#x5BF9;&#x79F0;&#x52A0;&#x5BC6; &#x8FDB;&#x884C;&#x8FDE;&#x63A5;&#xFF0C;&#x8FD9;&#x6837;&#x505A;&#x662F;&#x4E3A;&#x4E86;&#x907F;&#x514D;&#x4E2D;&#x95F4;&#x4EBA;&#x653B;&#x51FB;&#x79D8;&#x94A5;&#x88AB;&#x52AB;&#x6301;&#xFF0C;&#x4F46;&#x662F; &#x975E;&#x5BF9;&#x79F0;&#x52A0;&#x5BC6; &#x7684;&#x6548;&#x7387;&#x6BD4;&#x8F83;&#x4F4E;&#x3002;&#x6240;&#x4EE5;&#x4E00;&#x65E6;&#x5EFA;&#x7ACB;&#x4E86;&#x5B89;&#x5168;&#x7684;&#x8FDE;&#x63A5;&#x4E4B;&#x540E;&#xFF0C;&#x5C31;&#x53EF;&#x4EE5;&#x4F7F;&#x7528;&#x8F7B;&#x91CF;&#x7684; &#x5BF9;&#x79F0;&#x52A0;&#x5BC6;&#x3002;</p>
<h2 id="3ios&#x7684;&#x7B7E;&#x540D;&#x673A;&#x5236;&#x662F;&#x600E;&#x4E48;&#x6837;&#x7684;">3.iOS&#x7684;&#x7B7E;&#x540D;&#x673A;&#x5236;&#x662F;&#x600E;&#x4E48;&#x6837;&#x7684;</h2>
<ul>
<li><p>&#x7B7E;&#x540D;&#x673A;&#x5236;&#xFF1A;</p>
<p>  &#x5148;&#x5C06;&#x5E94;&#x7528;&#x5185;&#x5BB9;&#x901A;&#x8FC7;&#x6458;&#x8981;&#x7B97;&#x6CD5;&#xFF0C;&#x5F97;&#x5230;&#x6458;&#x8981;</p>
<p>  &#x518D;&#x7528;&#x79C1;&#x94A5;&#x5BF9;&#x6458;&#x8981;&#x8FDB;&#x884C;&#x52A0;&#x5BC6;&#x5F97;&#x5230;&#x5BC6;&#x6587;</p>
<p>  &#x5C06;&#x6E90;&#x6587;&#x672C;&#x3001;&#x5BC6;&#x6587;&#x3001;&#x548C;&#x79C1;&#x94A5;&#x5BF9;&#x5E94;&#x7684;&#x516C;&#x94A5;&#x4E00;&#x5E76;&#x53D1;&#x5E03;</p>
</li>
<li><p>&#x9A8C;&#x8BC1;&#x6D41;&#x7A0B;&#xFF1A;</p>
<p>  &#x67E5;&#x770B;&#x516C;&#x94A5;&#x662F;&#x5426;&#x662F;&#x79C1;&#x94A5;&#x65B9;&#x7684;</p>
<p>  &#x7136;&#x540E;&#x7528;&#x516C;&#x94A5;&#x5BF9;&#x5BC6;&#x6587;&#x8FDB;&#x884C;&#x89E3;&#x5BC6;&#x5F97;&#x5230;&#x6458;&#x8981;</p>
<p>  &#x5C06;APP&#x7528;&#x540C;&#x6837;&#x7684;&#x6458;&#x8981;&#x7B97;&#x6CD5;&#x5F97;&#x5230;&#x6458;&#x8981;&#xFF0C;&#x4E24;&#x4E2A;&#x6458;&#x8981;&#x8FDB;&#x884C;&#x6BD4;&#x5BF9;&#xFF0C;&#x5982;&#x679C;&#x76F8;&#x7B49;&#x90A3;&#x4E48;&#x4E00;&#x5207;&#x6B63;&#x5E38;</p>
</li>
</ul>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="Image-processing.html" class="navigation navigation-prev " aria-label="Previous page: 图像处理">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="Runtime.html" class="navigation navigation-next " aria-label="Next page: Runtime">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"数据安全及加密","level":"3.11","depth":1,"next":{"title":"Runtime","level":"3.12","depth":1,"path":"Runtime.md","ref":"Runtime.md","articles":[]},"previous":{"title":"图像处理","level":"3.10","depth":1,"path":"Image-processing.md","ref":"Image-processing.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["livereload"],"pluginsConfig":{"livereload":{},"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"Data-encryption.md","mtime":"2020-04-13T10:23:32.000Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2020-05-27T09:12:21.691Z"},"basePath":".","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="gitbook/gitbook.js"></script>
    <script src="gitbook/theme.js"></script>
    
        
        <script src="gitbook/gitbook-plugin-livereload/plugin.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

